package com.zclcs.mapper;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zclcs.model.Role;

public interface RoleMapper extends BaseMapper<Role> {

	IPage<Role> selectRolePage(Page<Role> page, @Param("uuid") String uuid,
			@Param("ew") QueryWrapper<Role> entityWrapper1);

	/**
	 * 查询是否系统角色
	 * 
	 * @param entityWrapper
	 * @return
	 */
	Integer selectIsAdmin(@Param("ew") QueryWrapper<Role> entityWrapper);

	/**
	 * 查询系统角色名称
	 * 
	 * @param entityWrapper
	 * @return
	 */
	String[] selectAdminRole(@Param("ew") QueryWrapper<Role> entityWrapper);

}
